package com.admyvi.templates.gradle.springboot.web;

import com.admyvi.templates.gradle.springboot.service.BiomsCnfAgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XiangKang on 2017/8/22.
 */
@RestController
public class HomeController {
    @Autowired
    private BiomsCnfAgencyService service;

//    @Autowired
//    private RedisTemplate<Object, Object> redisTemplate;

    @RequestMapping(value = "/mybatis")
    Object mybatis() {
//        redisTemplate.opsForValue().set("aaa","111");
//        return redisTemplate.opsForValue().get("aaa");
        service.getStr();
        return service.queryAll();
    }
}
